// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 上传图片 POST /api/image/upload */
export async function upload(body: FormData) {
  const response = await request<any>('/api/image/upload', {
    method: 'POST',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data: body,
  });
  return response.data as SYSTEM.ImageUploadRes;
}

